package com.gmail.hongyz.myfuse.model;

import java.util.Set;


/**
 * 
 * @author hongyz
 * @hibernate.class table="app_user"
 *
 */
public class User {

	private String id;
	private String name;
	private String userId;
	private String password;
	private String email;
	private String status;
	
	public User() {
	}
	public User(String id, String name) {
		super();
		this.id = id;
		this.name = name;
	}
	/**
     * @hibernate.id column="id" generator-class="uuid"
     */
	public String getId() {
		return id;
	}
	public void setId(String id) {
		this.id = id;
	}
	 /**
     * @hibernate.property length="50"
     */
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	/**
     * @hibernate.property length="50" not-null="true" unique="true"
     */
	public String getUserId() {
		return userId;
	}
	public void setUserId(String userId) {
		this.userId = userId;
	}
	/**
	 * @hibernate.property length="50"
	 */
	public String getPassword() {
		return password;
	}
	public void setPassword(String password) {
		this.password = password;
	}
	/**
     * @hibernate.property length="50"
     */
	public String getEmail() {
		return email;
	}
	public void setEmail(String email) {
		this.email = email;
	}
	public String getStatus() {
		return status;
	}
	public void setStatus(String status) {
		this.status = status;
	}
	public boolean validatePassword(String password) {
		return this.password.equals(password);
	}
}
